#include "stdio.h"
#include "unistd.h"
#include "time.h"

int main(int argc, char const *argv[])
{
    time_t Time;
    while (1)
    {
        Time = time(NULL);
        struct tm *local_time = localtime(&Time);
        printf("年%d 月%d 日%d 时%d 分%d 秒%d\r", local_time->tm_year+1900, local_time->tm_mon+1, local_time->tm_mday, local_time->tm_hour,
               local_time->tm_min, local_time->tm_sec);
        fflush(stdout);
        sleep(1);
    }
    return 0;
}
